home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1994 June / PC Plus Super CD coverdisc Issue 93 June 1994.iso / install / orgdos / install.dat / BOOK.3 < prev    next >
Encoding:
Text File  |  1994-02-27  |  8.6 KB  |  265 lines

  1. Advanced Concepts
  2. @Introduction
  3. ~Introduction
  4.  
  5. This Microbook discusses some topics which are likely to
  6. be of interest only to those who wish to fine tune the
  7. Organiser for their own needs.
  8.  
  9. Topics discussed in this book are:
  10.  
  11.          How to use more than one Organiser without
  12.          installing two copies of the software
  13.  
  14.          Fixing corrupted diary files
  15.  
  16.          Customising Icon Bar icons
  17.  
  18.          Adding new Thoughts for the day
  19.  
  20.          Information for programmers who want
  21.          their programs to use the NGS GUI
  22.  
  23.          Availability of Neil Gorin for
  24.          freelance programming
  25.  
  26. Some of the information within assumes a moderate
  27. knowledge of the PC and DOS operating system. It is
  28. assumed that you are using DOS version 5 or later.
  29.  
  30. @
  31. @Multiple Organisers
  32. ~How to use more than one Organiser
  33.  
  34. As of v1.5, Organiser was able to use multiple Organisers
  35. through the GORG environment variable. Through more
  36. efficient coding, it is no longer necessary to set this.
  37.  
  38. Gorin's Organiser always creates Diary, Notepad, To Do and
  39. Address Book* files in the currently active directory. To
  40. use more than one Organiser, it is therefore a simple matter
  41. of creating the necessary directories, changing into them
  42. and running the ORGANISE program. To make this easier you
  43. can either create a batch file to do this for you, or place
  44. the C:\ORGANISE directory in your path.
  45.  
  46. On my PC, I have a batch file called ORGNEIL.BAT to start my
  47. Organiser. The contents of this file are as follows:
  48.  
  49. Echo Off
  50. D:
  51. CD \ORGANISE\NEIL
  52. \ORGANISE\ORGANISE /TODAY
  53. CD \
  54.  
  55. The /TODAY switch displays the current day's appointments
  56. before the Organiser starts, giving the option to Continue
  57. (return to DOS) or Start the Organiser.
  58.  
  59. * The Address Book always loads the book pointed at by the
  60. GORINDESKTOP environment variable, if present. If you
  61. require one Address Book to be shared with the Desktop,
  62. and one to not be shared, your batch file for the latter
  63. should read (for example)
  64.  
  65. SET GORINDESKTOP=
  66. CD \ORGANISE\NEIL
  67. \ORGANISE\ORGANISE
  68. SET GORINDESKTOP=C:\DESKTOP\
  69.  
  70. Icons and other resources are stored within the ORGANISE
  71. directory, and are therefore available to all "Organisers".
  72.  
  73. @Fixing Corrupt files
  74. ~Fixing Corrupted Diary Files
  75.  
  76. If the Organiser announces that a diary file has become
  77. corrupted, note down the filename given. You may find that
  78. no major corruption has occurred, in which case simply
  79. editing an appointment and re-saving will correct the
  80. problem. However, more commonly you will find that
  81. appointment slots are full of X's which may exceed the
  82. available space on screen. If this simply occurs for a few
  83. days at the end of a month, delete the corrupted
  84. appointments and reschedule them.
  85.  
  86. However, often the problem is more deep rooted and cannot
  87. be solved in this way (or reoccurs).
  88.  
  89. In the vast majority of these cases the problem has been
  90. traced to the SMARTDRV disk cache, where the cache has not
  91. flushed completely before the computer is switched off.
  92.  
  93. At the DOS prompt type CHKDSK /F. You may be asked if
  94. you'd like to "Convert Lost Chains to Files" - if you
  95. do not know what this means, select No. You may be told
  96. that the file 1994.FEB (or whatever the corrupted diary
  97. file was called) is crosslinked/has been shortened/has
  98. been corrected. When the DOS prompt re-appears, delete the
  99. corrupt file (e.g. 1994.FEB) and run CHKDSK again.
  100.  
  101. Now restart the Organiser and attempt to view the missing
  102. month. You will be told that the Organiser is creating a
  103. new year - actually, the only file being replaced is the
  104. corrupted one, all others will be left alone. Once this is
  105. done, you will have to re-schedule any lost appointments.
  106.  
  107. @Customising Icon bar
  108. ~Customising Icon Bar icons
  109.  
  110. The icons displayed on the icon bar are stored on disk as
  111. standard ICU files, named SYSx.VGA where x is a number. To
  112. edit these icons:
  113.  
  114.          1: Copy (do not rename) SYSx.VGA to SYSx.ICU
  115.          2: Run the Organiser and edit the icon using the
  116.             icon editor. Save the icon.
  117.          3: Exit the Organiser.
  118.          4: Copy SYSx.ICU to SYSx.VGA.
  119.  
  120. Future versions of Organiser may change the icons displayed
  121. on this bar. If you have designed a replacement icon which
  122. is better than those currently displayed, please send it in
  123. and it may be used in later versions.
  124.  
  125. NOTE: Other files ending with a VGA extension are NOT icon
  126. files and must not be modified in this manner.
  127. Specifically, .VGA files generally change both format and
  128. size between releases and odd results may occur if you use
  129. (for example) v1.5 VGA files with v2.0 of the Organiser.
  130.  
  131. @New Thoughts
  132. ~Adding new entries to "Thought for the day"
  133.  
  134. The thoughts are stored in the plain ASCII file TAGS.DAT.
  135. Each line of this file (up to 700 lines) should contain a
  136. separate "thought". Thoughts should be at most 70
  137. characters long.
  138.  
  139. TAGS.DAT is the same format as similar files supplied with
  140. The Gorin Desktop and Organiser for Windows (Registered
  141. Editions).
  142.  
  143. The thought for the day program is available in both DOS,
  144. DOS GUI (standalone) and Windows (standalone) versions in
  145. the file TAGQUOTE.ZIP on Nildram's Shareware BBS on 0442
  146. 891109.
  147.  
  148. @NGS GUI 1/2
  149. ~Using the NGS GUI in your programs
  150.  
  151. The NGS GUI is available for use by Borland/Turbo Pascal 6
  152. or 7 developers as a source code unit. The GUI unit
  153. provides functions to:
  154.  
  155.          Draw Windows
  156.          Draw & Handle Pushbuttons
  157.          Draw & Handle Icons
  158.          Create and remove small "box" windows
  159.          Supply information dialogues with Ok, Ok & Cancel,
  160.                 Yes & No & Cancel buttons
  161.          Draw three dimentional shades
  162.  
  163. The GUI also comes with additional code to perform
  164. rudimentary scrolling and to implement scroll bars.
  165. Instructions on how to create .VGA format bit image files is
  166. included.
  167.  
  168. All NGS GUI programs run in VGA mode on any VGA system.
  169. The graphics interface used is directly linked the the
  170. BGI, which has been found to be both fast and
  171. straightforward (particularly with EGAVGA.BGI v3.0 as
  172. supplied with v7 of the Borland Compilers).
  173.  
  174. The following page contains a simple example program built
  175. using the GUI.
  176.  
  177. @NGS GUI 2/2
  178. ~Using the NGS GUI in your programs
  179.  
  180. A sample program to display a main window, an icon and
  181. respond when the CLOSE box or icon is selected follows:
  182.  
  183. Program Example;
  184. Uses UnixGUI;
  185.  
  186. begin
  187.          InitGUI;
  188.          MainScr('Demonstration');
  189.          LoadIcon('QUERY.ICU');
  190.          Displayicon(200,200,'Press','This!');
  191.          Repeat
  192.                    IsIconClicked(200,200);
  193.                    If Pusheddown then
  194.                         OkDialogue('Icon Pressed',
  195.                                    '',
  196.                                    'Icon has been pressed',
  197.                                    '');
  198.                    Checkexit('Demo');
  199.          Until False;
  200. end.
  201.  
  202. If this looks Ok to you, send a stamped address envelope and
  203. a floppy disk for a copy of the UnixGUI source code. No
  204. charges are made for the use of this interface, provided:
  205.  
  206.          (a) You credit the GUI to NGS within your program
  207.          and documentation.
  208.  
  209.          (b) Your software is distributed as PD or
  210.          Shareware. For commercial publication, a fee must
  211.          be negotiated.
  212.  
  213. Microbook is available for documentation purposes. A
  214. licensed version of Microbook costs £49.95 but allows
  215. unlimited distribution of the RunTime module. Due to the
  216. current standing of NGS, Microbook is available to students
  217. at a vastly reduced rate. Please call for details.
  218.  
  219. @Freelance
  220. ~Availability of Neil Gorin for programming projects
  221.  
  222. Through the development of the Gorin series of applications,
  223. I have gained significant experience in programming both
  224. the DOS and Windows environments.
  225.  
  226. I am available for freelance programming and design work
  227. in the following areas:
  228.  
  229.          DOS GUI based products using the NGS GUI
  230.          and Microbook
  231.          Windows based products
  232.          Windows Resource design (E.G. Dialog layout)
  233.          Windows Help File generation
  234.  
  235. For development of DOS GUI products, it is possible to
  236. customise the NGS GUI in whichever way is most convenient
  237. for your company. All coding is currently undertaken using
  238. the latest releases of the Borland Pascal compilers, which
  239. ensure fast, accurate code and small executable files.
  240.  
  241. Under Windows, the following interfaces can be constructed:
  242.  
  243.          Standard Windows 3.1 (White)
  244.          Microsoft 3D look (As planned for Windows 4.0)
  245.          Borland Custom (Grey, with bitmap/icon buttons)
  246.  
  247. Highly competitive rates are offered. For a free estimate,
  248. contact me at 4 Rookwood Drive, Stevenage, Herts. SG2 8PJ.
  249.  
  250. @
  251.  
  252. @
  253.  
  254. @
  255. @
  256. @
  257. @
  258. @
  259. @
  260. @
  261. @
  262. @
  263.  
  264. @
  265.